'use strict';
const db = uniCloud.database();
// 获取 `user` 集合的引用
const collection = db.collection('noticinfo');
exports.main = async (event, context) => {
	const {_id,publish_date} = event
	let notic = collection.where({
		publish_date:publish_date-0
	}).get()
	//返回数据给客户端
	return notic
};